package com.bytz.modules.cms.reseller.entity;

import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.bytz.modules.cms.user.model.IChangeEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 莱宝CMS—经销商管理—经销商/产品线等级历史变动表
 * </p>
 *
 * @author KyleWang
 * @since 2022-10-10
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("cms_reseller_level_change")
@ApiModel(value = "ResellerLevelChange对象", description = "莱宝CMS—经销商管理—经销商/产品线等级历史变动表")
public class ResellerLevelChange implements Serializable, IChangeEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    private String id;

    @ApiModelProperty(value = "经销商ID")
    private String resellerId;

    @ApiModelProperty(value = "经销商名")
    private String resellerName;

    @ApiModelProperty(value = "产品线ID")
    private String productLineId;

    @ApiModelProperty(value = "产品线名称")
    private String productLineName;

    @ApiModelProperty(value = "经销商等级ID")
    private String resellerLevelId;

    @ApiModelProperty(value = "联系人")
    private String contactPerson;

    @ApiModelProperty(value = "电话")
    private String phone;

    @ApiModelProperty(value = "现等级ID")
    private String levelId;

    @ApiModelProperty(value = "现产品线等级名称")
    private String productLineLevelName;

    @ApiModelProperty(value = "新等级顺序")
    private Integer sort;

    @ApiModelProperty(value = "生效时间")
    private LocalDateTime effectTime;

    @ApiModelProperty(value = "失效时间")
    private LocalDateTime expiredTime;

    @ApiModelProperty(value = "状态（0：未同步，1：已同步）")
    private String syncStatus;

    @ApiModelProperty(value = "备注")
    private String remark;

    @ApiModelProperty(value = "审批批次ID")
    private String auditBatchId;

    @ApiModelProperty(value = "删除状态")
    @TableLogic
    private Integer delFlag;

    @ApiModelProperty(value = "创建人")
    private String createBy;

    @ApiModelProperty(value = "创建人姓名")
    private String createByName;

    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "更新人")
    private String updateBy;

    @ApiModelProperty(value = "更新人姓名")
    private String updateByName;

    @ApiModelProperty(value = "更新时间")
    private LocalDateTime updateTime;


}